package test.test6_18;

public class Demo7 {
    //question:
    //1.在控制台输出2次javaSE
    //2.在控制台输出7次javaSE
    //3.在控制台输出13javaSE
    public static void main(String[] args) {
        int numOfTime = 0;
        for (int i = 1; i <= 10; i++) {
            if (i % 3 == 0) {
                //break;//1.key

                System.out.println("javaSE");

                numOfTime++;

                //continue;//2.key
            }
            numOfTime++;
            System.out.println("javaSE");
        }
        System.out.println("控制台输出" + numOfTime + "次");
    }
}
